package com.zfzs.post.modules.merchant.service.mapper.mybatis;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfzs.post.model.dto.QueryMerchantPageListDTO;
import com.zfzs.post.modules.merchant.domain.Merchant;
import com.zfzs.post.modules.merchant.service.dto.MerchantDTO;
import com.zfzs.post.modules.merchant.service.dto.MerchantQueryCriteria;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商户
 */
public interface IMerchantMapper extends BaseMapper<Merchant> {

    //商户列表 分页 多条件查询
    List<Map<String, Object>> queryMerchantPageList(@Param("ex")QueryMerchantPageListDTO query,@Param("pageNum") long pageNum, @Param("pageSize")int pageSize);

    //商户列表总数
    int queryMerchantPageCount(@Param("ex")QueryMerchantPageListDTO query);
    //商户列表总交易
    String queryMerchantPageSum(@Param("ex")QueryMerchantPageListDTO query);

    //商户列表 后台
    List<Map<String, Object>> queryMerchantWebPageList(@Param("ex")MerchantQueryCriteria query,@Param("pageNum") long pageNum, @Param("pageSize")int pageSize);

    //商户列表 后台
    int queryMerchantWebPageCount(@Param("ex")MerchantQueryCriteria query);

}
